package com.hzb.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzb.common.utils.PageUtils;
import com.hzb.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.hzb.gulimall.product.entity.AttrEntity;
import com.hzb.gulimall.product.entity.AttrGroupEntity;
import com.hzb.gulimall.product.vo.AttrRespVo;
import com.hzb.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author huangZB
 * @email 576566606@qq.com
 * @date 2020-08-26 23:22:10
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(long attrgroupId, Map<String, Object> params);

    PageUtils queryBasePage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrVo(Long attrId);

    void updateAttr(AttrVo attr);

    void deleteRelation(List<AttrAttrgroupRelationEntity> attrgroupRelationEntities);
}

